#!/bin/zsh
if [ $1 "==" "rebuild" ]  
then 
    rm -rf build
    xcodebuild -scheme IDF -workspace IDF.xcworkspace -configuration Release clean archive -archivePath build/Release-iphoneos/IDF.xcarchive DEVELOPMENT_TEAM=56WNGLW3EM 
fi
xcodebuild  -exportArchive -archivePath build/Release-iphoneos/IDF.xcarchive -exportPath build/Release-iphoneos/ -exportOptionsPlist build.plist 
# rm -rf build
# fastlane adhoc
# fir publish ./build/IDF.ipa -T 1c1adb652cbd10df365b94ed89845420
# Release-iphoneos
curl -F "file=@/Users/chenxuting/work/金融/IDF/build/Release-iphoneos/IDF.ipa" -F "uKey=1e530c08aaeecdeebb5cfd392249e808" -F "_api_key=655f2d2b2af656e81f32edcd9b72f5b4" -F "installType=2" -F "password=5566" https://qiniu-storage.pgyer.com/apiv1/app/upload


